package com.luo.ssm.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author : luocheng
 * @date : Created in 2021/8/26 19:24
 * @description : 由于WEB-INF中的资源只能通过转发获取，所以该控制器用于控制页面跳转
 */
@Controller
public class PageJumpController {
    @RequestMapping("/toLogin")
    public String toLogin(){
        return "login";
    }

    @RequestMapping("/toInfo")
    public String toInfo(){
        return "main/info";
    }

    @RequestMapping("/toDirAdd")
    public String toDirAdd(){
        return "dir/add";
    }

    @RequestMapping("/toUserPass")
    public String toUserPass(){
        return "user/pass";
    }

}
